package com.weijian.dal.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 学习状态枚举
 */
@Getter
public enum StudyStatus {
    NOT_STARTED(0, "未开始"),
    IN_PROGRESS(1, "学习中"),
    COMPLETED(2, "已完成");

    @EnumValue
    private final int code;

    @JsonValue
    private final String description;

    StudyStatus(int code, String description) {
        this.code = code;
        this.description = description;
    }

}